package me.zhengjie.modules.equipment.service;

import me.zhengjie.modules.equipment.domain.TSparepart;
import me.zhengjie.modules.equipment.service.dto.TSparepartDTO;
import me.zhengjie.modules.equipment.service.dto.TSparepartQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

/**
* @author sw
* @date 2019-07-06
*/
public interface TSparepartService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(TSparepartQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    public Object queryAll(TSparepartQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TSparepartDTO findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    TSparepartDTO create(TSparepart resources);

    /**
     * update
     * @param resources
     */
    void update(TSparepart resources);

    /**
     * delete
     * @param id
     */
    void delete(Integer id);
}